import heapq
# https://blog.csdn.net/qq_23262411/article/details/104854417
if __name__ == '__main__':
    data = [(1, 1), (1, 2), (1, 3), (3, 1), (3, 3), (5, 5), (5, 6)]
    #不能忘记
    heapq.heapify(data)
    heapq.heappush(data, (3, 2))
    print(data)